﻿using System;
using System.Collections;
using System.Collections.Generic;


namespace Miao.ML
{
    //[Obsolete("Action保存已支持多播")]
    public class MethodData : WinMLData, INullable
    {

        public MethodData(string methodName)
        {
            MethodName = methodName;
        }

        //public MethodData(string methodName,string methodClass)
        //{
        //    MethodClass = methodClass;
        //    MethodName = methodName;
        //}

        public void AddProperty(WinMLData targetML)
        {
            this.targetML = targetML;
        }

        public WinMLData targetML { get; set; }
        public bool isNull => MethodName == null;

        public bool isStatic;

        //public string MethodClass { get; set; }

        public string MethodName { get; set; }

        public sealed override DataType type => DataType.Method;

        public override string ToString()
        {
            return MethodName;
        }

    }

    //public class MethodData : WinMLData, INullable
    //{
    //    public MethodData(string methodName)
    //    {
    //        MethodName = methodName;
    //    }

    //    public MethodData(string methodClass,string methodName) 
    //    {
    //        MethodClass = methodClass;
    //        MethodName = methodName;
    //    }

    //    public bool isNull => MethodName == null;

    //    public bool isStatic;

    //    public string MethodClass { get; set; }

    //    public string MethodName { get; set; }

    //    public override DataType type => DataType.Method;

    //    public override string ToString()
    //    {
    //        return MethodName;
    //    }

    //}
}
